Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Value Types: Replace arraycopy source and destination with temps #7582

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

a7ehuo
Copy link
Contributor

@a7ehuo a7ehuo commented Dec 4, 2024

When preparing for null restricted arraycopy transformation, there are temps created for the source array and the destination array. Other sub transformations that run after the preparation and before null-restrcited arraycopy transformation are not aware of these temps. These temps might not get updated properly. This change replaces all the commoned source array node and commoned destination array node with the temps right after the temps are created.

Fixes: eclipse-openj9/openj9#20522

When preparing for null restricted arraycopy transformation,
there are temps created for the source array and the destination
array. Other sub transformations that run after the preparation
and before null-restrcited arraycopy transformation are not aware
of these temps. These temps might not get updated properly.
This change replaces all the commoned source array node and commoned
destination array node with the temps right after the temps are created.

Fixes: eclipse-openj9/openj9#20522
Signed-off-by: Annabelle Huo <[email protected]>
@a7ehuo a7ehuo requested a review from vijaysun-omr as a code owner December 4, 2024 14:25
@a7ehuo a7ehuo changed the title Replace arraycopy source and destination with temps Value Types: Replace arraycopy source and destination with temps Dec 4, 2024
@a7ehuo
Copy link
Contributor Author

a7ehuo commented Dec 4, 2024

@hzongaro May I ask you to review this change? Thank you!

@a7ehuo a7ehuo requested review from hzongaro and removed request for vijaysun-omr December 4, 2024 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ValueTypes: TestArrayCopyWithOops
1 participant